#include "mainwindow.h"
#include "ui_mainwindow.h"
#include <QDebug>

MainWindow::MainWindow(QWidget *parent) :
    QMainWindow(parent),
    ui(new Ui::MainWindow)
{
    ui->setupUi(this);

    if(!m_pFloatTool)
    {
        m_pFloatTool = new FloatTool(ui->tab_floatTool);
        m_pFloatTool->show();
    }

    if(!m_pConfigTool)
    {
        m_pConfigTool = new ConfigTool(ui->tab_configTool);
        m_pConfigTool->show();
    }

}

MainWindow::~MainWindow()
{
    delete ui;
    delete m_pFloatTool;
    delete m_pFloatTool;
}

void MainWindow::on_tabWidget_currentChanged(int index)
{

}
